@echo off
PUSHD %~dp0

FOR /F "tokens=1,2 delims=_ " %%i IN (SMDKernel) DO (
if "%%i"==":command" if not "%%j"=="" (
		::del /f /q "%%j.cmd" 2>nul
		if not exist "%%j.cmd" call :command_add "%%j"  >nul
))


goto :end

:command_add
if not exist "%~n1.cmd" mklink "%~n1.cmd" SMDKernel >nul
goto :eof

:end
POPD